package weiyao.xinxidasai.mapper;

import org.apache.ibatis.annotations.*;
import weiyao.xinxidasai.DTO.versionDTO;

import java.util.List;
@Mapper
public interface Keymapper {

    @SelectProvider(type = KeySqlProvider.class, method = "selectFoldersWithVersionByUserId")
    @Results(id = "versionDTOMap", value = {
            @Result(property = "versionId", column = "version_id"),
            @Result(property = "versionNo", column = "version_no"),
            @Result(property = "folderPath", column = "folder_path")
    })
    List<versionDTO> selectFoldersWithVersionByUserId(@Param("userId") Long userId);
}
